package adv4;

import java.util.Calendar;
import java.util.Scanner;

public class CalTest2 {

	public static void main(String[] args) {
		Calendar c = Calendar.getInstance();
		int max = c.getActualMaximum(Calendar.DAY_OF_MONTH);
		System.out.println(max);
		c.set(Calendar.YEAR, 1840);
		c.set(Calendar.MONTH, Calendar.FEBRUARY);
		max = c.getActualMaximum(Calendar.DAY_OF_MONTH);
		System.out.println("???" + max);
		System.out.println(c.getTime());

	}
}
